<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:sec="http://www.springframework.org/security/facelets/tags"
	xmlns:p="http://primefaces.org/ui">

	<div class="navbar navbar-inverse navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<button type="button" class="btn btn-navbar" data-toggle="collapse"
					data-target=".nav-collapse">
					<span class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<h:link class="brand" value="Livros Sociais"
					outcome="/pages/authenticaded/home" />
				<div class="nav-collapse collapse">
					<ul class="nav">
						<li class="dropdown"><a href="#" class="dropdown-toggle"
							data-toggle="dropdown">Public<b class="caret"></b></a>
							<ul class="dropdown-menu">
								<li><h:link value="public"
										outcome="/pages/authenticaded/home" /></li>
							</ul></li>
						<li class="dropdown"><a href="#" class="dropdown-toggle"
							data-toggle="dropdown">Config<b class="caret"></b></a>
							<ul class="dropdown-menu">
								<li><a
									href="#{facesContext.externalContext.requestContextPath}/j_spring_security_logout">
										Sair </a></li>
								<li><h:link rendered="#{sec:ifAnyGranted('ROLE_ADMIN')}"
										value="admin" outcome="/pages/admin/admin" /></li>
							</ul></li>



					</ul>
				</div>
			</div>
		</div>
	</div>
</ui:composition>